<template>
  <ElConfigProvider :locale="zhCn">
    <div style="margin: 25px 20px;">
      <ElTable :data="props.data">
        <ElTableColumn type="index" label="#" :width="50" align="center" />
        <ElTableColumn prop="name" label="房型" />
        <ElTableColumn prop="content" label="内容" />
      </ElTable>
    </div>
  </ElConfigProvider>
</template>

<script setup lang="ts">
import { ElTable, ElTableColumn, ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
interface Props {
  data: any[]
}
const props = withDefaults(defineProps<Props>(), {
  data: () => []
})
</script>